]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
gdm: clear the messages queue when the user answers a prompt
authorJonh Wendell <jonh.wendell@linux.intel.com>
Mon, 17 Jun 2013 20:12:07 +0000 (17:12 -0300)
committerJonh Wendell <jonh.wendell@linux.intel.com>
Tue, 18 Jun 2013 14:58:20 +0000 (11:58 -0300)
the messages were being shown even when the user entered the
right information they were asked for.

https://bugzilla.gnome.org/show_bug.cgi?id=702458

js/gdm/util.js

index 6075e660f95071fe4c5a0c112452cce893f038d0..cae3e1b2300c59b861f4791e8e20f6dc7c60f2ae 100644 (file)
@@ -164,6 +164,7 @@ const ShellUserVerifier = new Lang.Class({
 
     answerQuery: function(serviceName, answer) {
         if (!this._userVerifier.hasPendingMessages) {
+            this._clearMessageQueue();
             this._userVerifier.call_answer_query(serviceName, answer, this._cancellable, null);
         } else {
             let signalId = this._userVerifier.connect('no-more-messages',